Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type LPage and users #1404

Merged

Conversation

jchaffraix
Copy link
Collaborator

@jchaffraix jchaffraix commented Dec 21, 2024

This uncovered an inconstency in our API where we used the result of a void function. Explicitly added a null return to keep our current behavior.

TEST=Tested all the proofing buttons (save, mark as bad, ...).

Sandbox: https://www.pgdp.org/~jchaffraix/c.branch/julien_type_LPage_all/

This uncovered an inconstency in our API where we used the
result of a void function. Explicitly added a `null` return
to keep our current behavior.

TEST=Tested all the proofing buttons (save, mark as bad, ...).
@jchaffraix jchaffraix marked this pull request as ready for review December 21, 2024 16:56
@@ -866,7 +866,8 @@ function api_v1_project_page(string $method, array $data, array $query_params)
case 'revert':
return $proof_project_page->save_and_revert(receive_project_text_from_request_body('text'));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I spotted my earlier mistake here with the text parameter. I'll make a PR to fix it after this so it doesn't conflict.)

@cpeel cpeel merged commit 9959c12 into DistributedProofreaders:master Jan 4, 2025
12 checks passed
@jchaffraix jchaffraix deleted the julien_type_LPage_all branch January 9, 2025 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants